﻿using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// 主角数据
/// </summary>
public class RoleVo : SceneObject
{
    public RoleVo(Point ID, int type, int modelId)
        : base(ID, type, modelId)
    {
    }
    public RoleVo(Point ID)
        : this(ID, 0, 0)
    {
    }

    override public void setPropertiesFormByteArrayEx(int count, ByteArrayEx msg)
    {
        base.setPropertiesFormByteArrayEx(count, msg);
    }

    /// <summary>
    /// 获取玩家种族
    /// </summary>
    public int getPlayNation()
    {
        return (int)GetPropertiesEx("Nation");
    }

    /// <summary>
    /// 获得玩家等级
    /// </summary>
    public int getPlayerLevel()
    {
        return (int)GetPropertiesEx("Level");
    }

}
